package com.ecar.api.service.driver;

import java.util.List;

import com.ecar.common.dto.DataBean;
import com.ecar.core.driver.entity.Driver;

import net.sf.json.JSONObject;

public interface DriverService{
	int deleteByPrimaryKey(String id);

    int insert(Driver record);

    int insertSelective(Driver record);

    Driver selectByPrimaryKey(String id);

    DataBean updateByPrimaryKeySelective(Driver record);

    int updateByPrimaryKey(Driver record);

	DataBean regist(JSONObject fields);

	DataBean login(JSONObject fields);
	
	DataBean forgetPassword(JSONObject fields);

	DataBean startGetOrder(String driverId);

	DataBean stopGetOrder(String driverId);

	DataBean logout(String driverId);
	
	Driver selectByPhone(String phone);

	Long deletLoginCount(String phone);
	
	/*Map<String,List<DriverRouteVO>> getMyRoute(Integer driverId);*/
}
